//键盘输入星期几，根据输入，输出当日的安排
//switch-case
#include <stdio.h>
int main(void)
{
	int day=0;
	printf("请输入星期几（１－７）：");
	scanf("%d",&day);
	if(day>=1 && day<=7)
	{
		switch(day)
		{
			case 1:
				printf("星期一要．．．\n");
				break;
			case 2:
				printf("星期二要．．．\n");
				break;
			case 3:
				printf("星期三要．．．\n");
				break;
			case 4:
				printf("星期四要．．．\n");
				break;
			case 5:
				printf("星期五要．．．\n");
				break;
			case 6:
				printf("星期六要．．．\n");
				break;
			case 7:
				printf("星期天要．．．\n");
				break;
			default:
				break;
		}
	}
	else
	{
		printf("error!\n");
	}
	return 0;
}
